package com.it.schoolbookshop_back.entities.po;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Book implements Serializable {
    private Integer id;
    private String title;
    private String author;
    private Integer categoryId;
    private BigDecimal price;
    private String bookCondition;
    private Integer newDegree;
    private String description;
    // cover字段存储图片路径
    private String cover;
    private String coverType;
    private Integer sellerId;
    private String status;
    private Integer views;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}